﻿<UserControl x:Class="WizardControl.Wizard"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="419">
    <UserControl.Resources>
        <Style x:Key="NavButton" TargetType="Button">
            <Setter Property="Margin" Value="5"/>
            <Setter Property="Width" Value="70"/>
        </Style>
    </UserControl.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!--Page Title-->
        <Label x:Name="lblPageCaption" Grid.Row="0" Background="LightGray" BorderBrush="Gray" Padding="10">PAGE TITLE</Label>
        
        <!--Page content-->
        <ContentControl x:Name="ccPage" Grid.Row="1"/>

        <!--Navigation Buttons-->
        <DockPanel Background="LightGray" Grid.Row="2" LastChildFill="False">
            <Button x:Name="btnFinish" DockPanel.Dock="Right" Style="{StaticResource NavButton}" Click="btnFinish_Click">Finish</Button>
            <Button x:Name="btnForward" DockPanel.Dock="Right" Style="{StaticResource NavButton}" Click="btnForward_Click"><![CDATA[Forward >]]></Button>
            <Button x:Name="btnBack" DockPanel.Dock="Right" Style="{StaticResource NavButton}" Click="btnBack_Click"><![CDATA[< Back]]></Button>
            <Button x:Name="btnCancel" DockPanel.Dock="Right" Style="{StaticResource NavButton}" Click="btnCancel_Click">Cancel</Button>
        </DockPanel>
    </Grid>
</UserControl>
